import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import ElementUI from "element-ui";
import ViewUI from 'view-design';
import 'view-design/dist/styles/iview.css';
import "./styles.scss";
import http from "@/service/http-server.js"

//跳到编辑页
export function custom_href(id) {
  console.log("id:", id)
  return router.push('/topconfig/' + id)
}
//跳到新建页
export function to_edit() {
  // return router.push('/edit')
  return router.push('/topconfig')
}

Vue.use(ElementUI);
Vue.use(ViewUI);

Vue.prototype.$http = http;
Vue.config.productionTip = false;

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount("#app");